"use client";
import React from "react";
import "dayjs/locale/zh-cn";
import {DatesProvider, DateInput} from "@mantine/dates";
import {Container} from "@mantine/core";

export default function Page() {
  return (
    <Container p="lg">
      <DatesProvider
        settings={{
          timezone: "UTC",
          locale: "zh-cn",
          consistentWeeks: true,
          firstDayOfWeek: 0,
        }}
      >
        <DateInput
          clearable
          label="大生产立项日期"
          placeholder="选择日期"
          valueFormat="YYYY-MM-DD"
          maxDate={new Date()} // 不能晚于今天
        />
      </DatesProvider>
    </Container>
  );
}
